Quartiles are statistical measures that divide an ordered dataset into four equal parts, providing
insights into the distribution and spread of data. They extend the concept of the median by
identifying the boundaries that separate the lowest 25%, middle 50%, and highest 25% of the data.
Quartiles are essential for understanding data distribution, detecting outliers, and creating box
plots.
Quartile Definitions:
First Quartile (Q₁): 25th percentile - separates lowest 25% from upper 75%
Second Quartile (Q₂): 50th percentile - same as the median
Third Quartile (Q₃): 75th percentile - separates lowest 75% from upper 25%
Calculation Methods:
Position Formula: Q_k position = k(n+1)/4 where k = 1, 2, 3
Inclusive Method: Q₁ at position (n+1)/4, Q₃ at position 3(n+1)/4
Exclusive Method: Q₁ at position (n+3)/4, Q₃ at position (3n+1)/4
Interactive Quartiles Calculator
Data Visualization
8
Q₁
16
Q₂ (Median)
21
Q₃
13
IQR
Worked Example 1: Quartiles for Odd Number of Values
Find the quartiles of: 12, 7, 15, 9, 21, 18, 13
Solution:
Step 1: Sort the data: 7, 9, 12, 13, 15, 18, 21
Step 2: n = 7, positions: Q₁ at (7+1)/4 = 2nd position, Q₃ at 3(7+1)/4 = 6th position
Step 3: Q₁ = 9, Q₂ = 13, Q₃ = 18
Worked Example 2: Quartiles for Even Number of Values
Find the quartiles of: 4, 7, 2, 9, 5, 8, 10, 6
Solution:
Step 1: Sort the data: 2, 4, 5, 6, 7, 8, 9, 10
Step 2: n = 8, positions: Q₁ at (8+1)/4 = 2.25th → average of 2nd and 3rd, Q₃ at 3(8+1)/4 = 6.75th →
average of 6th and 7th